package com.jinzhi.jinzhidata.service.impl;

import com.jinzhi.jinzhidata.dataobject.ResourceType;
import com.jinzhi.jinzhidata.repository.ResourceTypeRepository;
import com.jinzhi.jinzhidata.service.ResourceTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author vansl
 * @description
 * @date 2020-01-05 19:20
 **/
@Service
public class ResourceTypeServiceImpl implements ResourceTypeService {

    @Autowired
    ResourceTypeRepository resourceTypeRepository;

    @Override
    public List<ResourceType> selectResourceTypeList() {
        return resourceTypeRepository.findAll();
    }
}
